package com.htsk.city.services.wechat.params;

import cn.hutool.core.date.DateUtil;
import com.htsk.city.services.core.domain.WxUser;
import lombok.Data;

@Data
public class UserRegisterParam {
    private String mobile;
    private String password;
    private String code;
    private String wxCode;
    private Long cityId;


    public WxUser getWxUser(){
        WxUser wxUser = new WxUser();
        wxUser.setMobile(mobile);
        wxUser.setNickname(mobile);
        wxUser.setPassword(password);
        wxUser.setCityId(cityId);
        wxUser.setStatus(1);
        wxUser.setDelFlag(0);
        wxUser.setUserType(1);
        wxUser.setCreateTime(DateUtil.date());
        wxUser.setUpdateTime(DateUtil.date());
        return wxUser;
    }
}
